//
//  PhotoAlbumHelper.h
//  WeCommunity
//
//  Created by mac on 2017/6/19.
//  Copyright © 2017年 lzy. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^SaveImageCompletion)(ALAsset *asset, NSError* error);

@interface PhotoAlbumHelper : NSObject

+(PhotoAlbumHelper *)shared;

#pragma mark - 获取所有照片
-(void)reloadingAllPicturesAndComplete:(void(^)(BOOL success, NSArray *results))doneBlock;


#pragma mark - 保存图片到相册
-(void)saveImage:(UIImage*)image
         toAlbum:(NSString*)albumName
 completionBlock:(SaveImageCompletion)completionBlock;

#pragma mark -添加照片到某个分组
-(void)addAssetURL:(NSURL*)assetURL
           toAlbum:(NSString*)albumName
   completionBlock:(SaveImageCompletion)completionBlock;

@end
